home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / printer.inc < prev    next >
Text File  |  1998-06-24  |  3KB  |  166 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/nodes.inc";
  3. include "inc/exec/lists.inc";
  4. include "inc/exec/ports.inc";
  5.  
  6. def PRD_RAWWRITE = (CMD_NONSTD+0);
  7. def PRD_PRTCOMMAND = (CMD_NONSTD+1);
  8. def PRD_DUMPRPORT = (CMD_NONSTD+2);
  9. def PRD_QUERY = (CMD_NONSTD+3);
  10.  
  11. def aRIS = 0;
  12. def aRIN = 1;
  13. def aIND = 2;
  14. def aNEL = 3;
  15. def aRI = 4;
  16.  
  17. def aSGR0 = 5;
  18. def aSGR3 = 6;
  19. def aSGR23 = 7;
  20. def aSGR4 = 8;
  21. def aSGR24 = 9;
  22. def aSGR1 = 10;
  23. def aSGR22 = 11;
  24. def aSFC = 12;
  25. def aSBC = 13;
  26.  
  27. def aSHORP0 = 14;
  28. def aSHORP2 = 15;
  29. def aSHORP1 = 16;
  30. def aSHORP4 = 17;
  31. def aSHORP3 = 18;
  32. def aSHORP6 = 19;
  33. def aSHORP5 = 20;
  34.  
  35. def aDEN6 = 21;
  36. def aDEN5 = 22;
  37. def aDEN4 = 23;
  38. def aDEN3 = 24;
  39. def aDEN2 = 25;
  40. def aDEN1 = 26;
  41.  
  42. def aSUS2 = 27;
  43. def aSUS1 = 28;
  44. def aSUS4 = 29;
  45. def aSUS3 = 30;
  46. def aSUS0 = 31;
  47. def aPLU = 32;
  48. def aPLD = 33;
  49.  
  50. def aFNT0 = 34;
  51. def aFNT1 = 35;
  52. def aFNT2 = 36;
  53. def aFNT3 = 37;
  54. def aFNT4 = 38;
  55. def aFNT5 = 39;
  56. def aFNT6 = 40;
  57. def aFNT7 = 41;
  58. def aFNT8 = 42;
  59. def aFNT9 = 43;
  60. def aFNT10 = 44;
  61.  
  62. def aPROP2 = 45;
  63. def aPROP1 = 46;
  64. def aPROP0 = 47;
  65. def aTSS = 48;
  66. def aJFY5 = 49;
  67. def aJFY7 = 50;
  68. def aJFY6 = 51;
  69. def aJFY0 = 52;
  70. def aJFY3 = 53;
  71. def aJFY1 = 54;
  72.  
  73. def aVERP0 = 55;
  74. def aVERP1 = 56;
  75. def aSLPP = 57;
  76. def aPERF = 58;
  77. def aPERF0 = 59;
  78.  
  79. def aLMS = 60;
  80. def aRMS = 61;
  81. def aTMS = 62;
  82. def aBMS = 63;
  83. def aSTBM = 64;
  84. def aSLRM = 65;
  85. def aCAM = 66;
  86.  
  87. def aHTS = 67;
  88. def aVTS = 68;
  89. def aTBC0 = 69;
  90. def aTBC3 = 70;
  91. def aTBC1 = 71;
  92. def aTBC4 = 72;
  93. def aTBCALL = 73;
  94. def aTBSALL = 74;
  95. def aEXTEND = 75;
  96.  
  97. def aRAW = 76;
  98.  
  99. struct IOPrtCmdReq is
  100.   io_Message:Message;
  101.   io_Device:ulong;
  102.   io_Unit:ulong;
  103.   io_Command:uword;
  104.   io_Flags:ubyte;
  105.   io_Error:byte;
  106.   io_PrtCommand:uword;
  107.   io_Parm0:ubyte;
  108.   io_Parm1:ubyte;
  109.   io_Parm2:ubyte;
  110.   io_Parm3:ubyte;
  111. ;
  112.  
  113. struct IODRPReq is
  114.   io_Message:Message;
  115.   io_Device:ulong;
  116.   io_Unit:ulong;
  117.   io_Command:uword;
  118.   io_Flags:ubyte;
  119.   io_Error:byte;
  120.   io_RastPort:ulong;
  121.   io_ColorMap:ulong;
  122.   io_Modes:ulong;
  123.   io_SrcX:uword;
  124.   io_SrcY:uword;
  125.   io_SrcWidth:uword;
  126.   io_SrcHeight:uword;
  127.   io_DestCols:long;
  128.   io_DestRows:long;
  129.   io_Special:uword;
  130. ;
  131.  
  132. def SPECIAL_MILCOLS = $0001;
  133. def SPECIAL_MILROWS = $0002;
  134. def SPECIAL_FULLCOLS = $0004;
  135. def SPECIAL_FULLROWS = $0008;
  136. def SPECIAL_FRACCOLS = $0010;
  137. def SPECIAL_FRACROWS = $0020;
  138. def SPECIAL_CENTER = $0040;
  139. def SPECIAL_ASPECT = $0080;
  140. def SPECIAL_DENSITY1 = $0100;
  141. def SPECIAL_DENSITY2 = $0200;
  142. def SPECIAL_DENSITY3 = $0300;
  143. def SPECIAL_DENSITY4 = $0400;
  144. def SPECIAL_DENSITY5 = $0500;
  145. def SPECIAL_DENSITY6 = $0600;
  146. def SPECIAL_DENSITY7 = $0700;
  147. def SPECIAL_NOFORMFEED = $0800;
  148. def SPECIAL_TRUSTME = $1000;
  149.  
  150. def SPECIAL_NOPRINT = $2000;
  151.  
  152. def PDERR_NOERR = 0;
  153. def PDERR_CANCEL = 1;
  154. def PDERR_NOTGRAPHICS = 2;
  155. def PDERR_INVERTHAM = 3;
  156. def PDERR_BADDIMENSION = 4;
  157. def PDERR_DIMENSIONOVFLOW = 5;
  158. def PDERR_INTERNALMEMORY = 6;
  159. def PDERR_BUFFERMEMORY = 7;
  160.  
  161. def PDERR_TOOKCONTROL = 8;
  162.  
  163. def SPECIAL_DENSITYMASK = $0700;
  164. def SPECIAL_DIMENSIONSMASK = (SPECIAL_MILCOLS|SPECIAL_MILROWS|SPECIAL_FULLCOLS|SPECIAL_FULLROWS|SPECIAL_FRACCOLS|SPECIAL_FRACROWS|SPECIAL_ASPECT);
  165.  
  166.